package com.newjiabo.ski.service.impl;

import java.util.List;
import com.newjiabo.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.newjiabo.ski.mapper.SkiOrderShootDetailMapper;
import com.newjiabo.ski.domain.SkiOrderShootDetail;
import com.newjiabo.ski.service.ISkiOrderShootDetailService;

/**
 * 约拍订单详情Service业务层处理
 * 
 * @author CaoMengHui
 * @date 2023-10-23
 */
@Service
public class SkiOrderShootDetailServiceImpl implements ISkiOrderShootDetailService 
{
    @Autowired
    private SkiOrderShootDetailMapper skiOrderShootDetailMapper;

    /**
     * 查询约拍订单详情
     * 
     * @param id 约拍订单详情主键
     * @return 约拍订单详情
     */
    @Override
    public SkiOrderShootDetail selectSkiOrderShootDetailById(String id)
    {
        return skiOrderShootDetailMapper.selectSkiOrderShootDetailById(id);
    }

    /**
     * 查询约拍订单详情列表
     * 
     * @param skiOrderShootDetail 约拍订单详情
     * @return 约拍订单详情
     */
    @Override
    public List<SkiOrderShootDetail> selectSkiOrderShootDetailList(SkiOrderShootDetail skiOrderShootDetail)
    {
        return skiOrderShootDetailMapper.selectSkiOrderShootDetailList(skiOrderShootDetail);
    }

    /**
     * 新增约拍订单详情
     * 
     * @param skiOrderShootDetail 约拍订单详情
     * @return 结果
     */
    @Override
    public int insertSkiOrderShootDetail(SkiOrderShootDetail skiOrderShootDetail)
    {
        skiOrderShootDetail.setCreateTime(DateUtils.getNowDate());
        return skiOrderShootDetailMapper.insertSkiOrderShootDetail(skiOrderShootDetail);
    }

    /**
     * 修改约拍订单详情
     * 
     * @param skiOrderShootDetail 约拍订单详情
     * @return 结果
     */
    @Override
    public int updateSkiOrderShootDetail(SkiOrderShootDetail skiOrderShootDetail)
    {
        skiOrderShootDetail.setUpdateTime(DateUtils.getNowDate());
        return skiOrderShootDetailMapper.updateSkiOrderShootDetail(skiOrderShootDetail);
    }

    /**
     * 批量删除约拍订单详情
     * 
     * @param ids 需要删除的约拍订单详情主键
     * @return 结果
     */
    @Override
    public int deleteSkiOrderShootDetailByIds(String[] ids)
    {
        return skiOrderShootDetailMapper.deleteSkiOrderShootDetailByIds(ids);
    }

    /**
     * 删除约拍订单详情信息
     * 
     * @param id 约拍订单详情主键
     * @return 结果
     */
    @Override
    public int deleteSkiOrderShootDetailById(String id)
    {
        return skiOrderShootDetailMapper.deleteSkiOrderShootDetailById(id);
    }
}
